#include <windows.h>


class Timer {

	LARGE_INTEGER freq;
	LARGE_INTEGER prev;


public:

	Timer() {
		QueryPerformanceFrequency(&freq);
		QueryPerformanceCounter(&prev);
	}


	float GetDeltaTimeSeconds() {
		LARGE_INTEGER now;
		QueryPerformanceCounter(&now);

		float lapse = (float)(now.QuadPart - prev.QuadPart) / freq.QuadPart;
		prev = now;

		return lapse;


	}



};